package com.atguigu.gulimall.order.to;

import com.atguigu.gulimall.order.entity.OrderEntity;
import com.atguigu.gulimall.order.entity.OrderItemEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

//由于前端数据不可信，创建好订单之后要重新去数据库查一遍
@Data
public class OrderCreateTo {

    private OrderEntity order;     //整个订单项的信息
    private List<OrderItemEntity> orderItems; //订单项目中的商品信息
    private BigDecimal payPrice;  //应付总额
    private BigDecimal fare;     //运费
}
